package cn.yiyuan.auth.service;

import cn.yiyuan.auth.domain.Permission;
import cn.yiyuan.base.until.PageInfo;
import cn.yiyuan.org.query.DepQuery;

import java.io.Serializable;
import java.util.List;

/**
 * @user m
 * @project system
 * @date 2023-10-28
 * @package cn.yiyuan.org.controller
 */

public interface PermissionService {
    void insert(Permission permission);

    void delete(Serializable id);

    void update(Permission permission);

    List<Permission> getAll();

    Permission getById(Serializable id);

    PageInfo<Permission> queryPage(DepQuery depQuery);

    void deleteAll();

    List<Permission> queryAll();

    void patchDelete(List<Long> ids);

    List<String> getUserPermissionByUserId(Long id);

}
